// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import store from "./store/index"
import router from './router'
import wxShare from '../config/api/wxShare'

import lazyLoad from "vue-lazyload"  // vue图片懒加载
import vuePicturePreview from 'vue-picture-preview'

require('./common/js/mobile-util')


window.wxShare = wxShare

Vue.use(vuePicturePreview)
Vue.use(lazyLoad, {
  preLoad: 1.3,
  attempt: 1,
  error: "../../static/pic_load_error_square.png",
  loading: "../../static/default_load.png"
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
